home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / appkit.760 < prev    next >
Text File  |  1992-02-06  |  884b  |  30 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f1\fmodern Courier;}
  2. \paperw11460
  3. \paperh7040
  4. \margl120
  5. \margr120
  6. {\colortbl\red0\green0\blue0;}
  7. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ul0\fs28 NXMapFile invalid stream\
  8. \
  9. Q:  Help! 
  10. \b NXMapFile()
  11. \b0  is returning a NULL stream.  \
  12. \
  13.  
  14. \fi-420\li440 A:  
  15. \fc0 The documentation is not explicit on this point, but the file must already exist for 
  16. \b NXMapFile()
  17. \b0  to return a valid stream.   As the name of the function indicates, it maps the file into a memory stream.  If the file doesn't exist, you can't very well map it.  If you want to open a memory stream to write to and later save to that path, you can use 
  18. \b NXOpenMemory()
  19. \b0  to get a memory stream and then use 
  20. \b NXSaveToFile()
  21. \b0  to write the stream out to that path.\
  22.  
  23. \fi0\li0 \
  24. QA760\
  25. \
  26. Valid for 1.0\
  27. Valid for 2.0\
  28. \
  29.  
  30.